package com.ethink.order.api.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author default
 * @version 1.0.0
 * @ClassName SaleDetailPageQueryModel.java
 * @Description 预供订单
 * @createTime 2022年11月01日 14:33:00
 */
@Data
public class PreSuppleOrderDetailModel {

    @Schema(description = "主键id")
    private Long id;

    @Schema(description ="销售需求单号")
    private String orderNo;

    @Schema(description ="订单来源")
    private String saleChannel;

    @Schema(description = "订单来源下级")
    private String saleSubChannel;

    @Schema(description ="制单人名称")
    private String createUserName;

    @Schema(description ="下单日期")
    private Date beginTime;

    @Schema(description ="截单时间")
    private Date endTime;

    @Schema(description ="需求交期")
    private Date demandPeriod;

    @Schema(description = "销售需求详情单")
    private String detailOrderNo;

    @Schema(description ="商品编码")
    private String mateSku;

    @Schema(description = "商品名称")
    private String mateSkuName;

    @Schema(description ="需求确认数量")
    private Integer demandAffirmQty;

    @Schema(description ="销售需求最低生产日期")
    private String worstDemandPeriod;

    @Schema(description = "提报百分比")
    private BigDecimal percentage;

    @Schema(description = "个人预报数量")
    private Integer personalQty;

    @Schema(description = "总预报数量")
    private Integer totalQty;

    @Schema(description = "是否锁单")
    private Boolean isLock;

    @Schema(description = "目标成本-本币")
    private BigDecimal targetCostLocal;

    @Schema(description ="订单状态 :1-未锁单(s1)|2-已锁单(s2)|3-确认采购(s3)")
    private Integer detailOrderStatus;

}
